home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
201-225
/
disk_201
/
draco
/
drinc
/
exec
/
tasks.g
< prev
next >
Wrap
Text File
|
1992-05-06
|
2KB
|
86 lines
type
Node_t=unknown14,
List_t=unknown14,
Task_t=struct{
Node_ttc_Node;
bytetc_Flags;
bytetc_State;
shorttc_IDNestCnt;
shorttc_TDNestCnt;
ulongtc_SigAlloc;
ulongtc_SigWait;
ulongtc_SigRecvd;
ulongtc_SigExcept;
uinttc_TrapAlloc;
uinttc_TrapAble;
*bytetc_ExceptData;
*bytetc_ExceptCode;
*bytetc_TrapData;
*bytetc_TrapCode;
*bytetc_SPReg;
*bytetc_SPLower;
*bytetc_SPUpper;
proc()voidtc_Switch;
proc()voidtc_Launch;
List_ttc_MemEntry;
*bytetc_UserData;
};
byte
TB_PROCTIME=0,
TB_STACKCHK=4,
TB_EXCEPT=5,
TB_SWITCH=6,
TB_LAUNCH=7,
TF_PROCTIME=(1<<0),
TF_STACKCHK=(1<<4),
TF_EXCEPT=(1<<5),
TF_SWITCH=(1<<6),
TF_LAUNCH=(1<<7),
TS_INVALID=0,
TS_ADDED=1,
TS_RUN=2,
TS_READY=3,
TS_WAIT=4,
TS_EXCEPT=5,
TS_REMOVED=6,
SIGB_ABORT=0,
SIGB_CHILD=1,
SIGB_BLIT=4,
SIGB_SINGLE=4,
SIGB_DOS=8,
SIGF_ABORT=(1<<0),
SIGF_CHILD=(1<<1),
SIGF_BLIT=(1<<4),
SIGF_SINGLE=(1<<4),
SIGF_DOS=(1<<8);
extern
AddTask(*Task_ttask;*byteinitialPC,finalPC)void,
AllocSignal(ulongsignalNum)ulong,
AllocTrap(ulongtrapNum)ulong,
CreateTask(*charname;shortpri;*byteinitPC;ulongstackSize)*Task_t,
DeleteTask(*Task_ttask)void,
Disable()void,
Enable()void,
FindTask(*charname)*Task_t,
Forbid()void,
FreeSignal(ulongsigNum)void,
FreeTrap(ulongtrapNum)void,
getCC()uint,
Permit()void,
RemTask(*Task_tt)void,
SetExcept(ulongnewSignals,signalMask)ulong,
SetSignal(ulongnewSignals,signalMask)ulong,
SetSR(ulongnewSR,mask)uint,
SetTaskPri(*Task_tt;longpriority)short,
Signal(*Task_tt;ulongsignals)void,
SuperState()*byte,
UserState(*bytesysStack)void,
Wait(ulongsignalSet)ulong;